Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More efficient decoding of case classes for Scala 3 #1281

Conversation

plokhotnyuk
Copy link
Contributor

Tested with Scala 3 and JDK 21 on Intel® Core™ i7-11800H:

Before

Benchmark                        (size)   Mode  Cnt        Score       Error  Units
ADTReading.zioJson                  N/A  thrpt    5  1691106.729 ± 23451.647  ops/s
AnyValsReading.zioJson              N/A  thrpt    5  3528456.325 ± 41147.322  ops/s
ExtractFieldsReading.zioJson        128  thrpt    5   137661.759 ±   938.162  ops/s
GeoJSONReading.zioJson              N/A  thrpt    5    11349.613 ±    94.790  ops/s
GitHubActionsAPIReading.zioJson     N/A  thrpt    5   315013.535 ±  8754.854  ops/s
GoogleMapsAPIReading.zioJson        N/A  thrpt    5    19387.118 ±   682.092  ops/s
NestedStructsReading.zioJson        128  thrpt    5   208924.503 ±  2951.986  ops/s
OpenRTBReading.zioJson              N/A  thrpt    5   135867.805 ±  3377.469  ops/s
PrimitivesReading.zioJson           N/A  thrpt    5  3875838.485 ± 47690.202  ops/s
TwitterAPIReading.zioJson           N/A  thrpt    5    16653.397 ±   870.447  ops/s

After

Benchmark                        (size)   Mode  Cnt        Score       Error  Units
ADTReading.zioJson                  N/A  thrpt    5  1892482.299 ±  3112.288  ops/s
AnyValsReading.zioJson              N/A  thrpt    5  3921001.708 ± 11951.810  ops/s
ExtractFieldsReading.zioJson        128  thrpt    5   143759.851 ±   710.118  ops/s
GeoJSONReading.zioJson              N/A  thrpt    5    11475.226 ±   452.265  ops/s
GitHubActionsAPIReading.zioJson     N/A  thrpt    5   323624.965 ±  6710.459  ops/s
GoogleMapsAPIReading.zioJson        N/A  thrpt    5    21989.391 ±   574.145  ops/s
NestedStructsReading.zioJson        128  thrpt    5   281407.248 ±  1855.487  ops/s
OpenRTBReading.zioJson              N/A  thrpt    5   147230.243 ±  2369.924  ops/s
PrimitivesReading.zioJson           N/A  thrpt    5  4195266.444 ± 52439.347  ops/s
TwitterAPIReading.zioJson           N/A  thrpt    5    17703.260 ±   334.242  ops/s

@plokhotnyuk plokhotnyuk requested a review from a team as a code owner February 3, 2025 17:58
@plokhotnyuk plokhotnyuk merged commit 001cb09 into zio:series/2.x Feb 3, 2025
31 checks passed
@plokhotnyuk plokhotnyuk deleted the more-efficient-decoding-of-case-classes branch February 3, 2025 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant